package cn.test;

public class Profession {
	private String name;
	private int age;
	private String content;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Profession() {}
	
	public Profession(String name,int age,String content) {
		this.name=name;
		this.age=age;
		this.content=content;
	}

	
	@Override
	public String toString() {
		return "年龄为"+age +"的"+ name+"正在" +content;
	}
	
	public void getEat() {
		System.out.print("吃饭");
	}
	
}
